<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ include file="/WEB-INF/component/commonTagLib.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><spring:message code="message.lable.proddruginfoSTDdetail"/></title>
<%@ include file="/WEB-INF/component/commonCSS.jsp" %> 

<style type="text/css">
    	div.col-sm-3.text-left,div.col-sm-5.text-left,div.col-sm-10.text-left{
    	    color:#949494;
    	}
    	label.checkLong *{
    		vertical-align: middle;
    		margin: 0px;
    	}
</style>
</head>
<body class="skin-blue-light sidebar-mini fixed skin-blue-light-frame">
    
    <section class="content-header">
        <h1>药品申报查询</h1>
         <ol class="breadcrumb">
            <li><a href="${ctx}/home.jsp"><i class="fa fa-home"></i><spring:message code="message.lable.first"/></a></li>
              <li><a href="#">缺货申报</a></li>
              <li><a href="#">药品申报查询</a></li>
        </ol> 
    </section>
    <section class="content">
        <div class=" box box-success">
            <!-- form start -->
            <form role="form" id="form" class="form-horizontal"  method="post">
            	<input type="hidden" name='qualityspecCode' value='<c:out value="${detail.qualityspecCode}" />' >
            	
                <div class="box-body" style="padding-bottom: 0px;">
	                <div class="form-group form-group-xs">
	                        <label class="col-sm-2 text-right">品规编码<spring:message code="message.yanZheng.maoHao"/></label>
	                        <div class="col-sm-3 text-left">
	                            <c:out value="${detail.qualityspecCode}" />
	                        </div>
	                        <label class="col-sm-3 text-right"><spring:message code="message.listForm.tongYongMing"/><spring:message code="message.yanZheng.maoHao"/></label>
	                        <div class="col-sm-3 text-left">
	                           <c:out value="${detail.qualityspecName }" />
	                        </div>
	                 </div>
	                 <div class="line"></div>
	                  <div class="form-group form-group-xs">
	                        <label class="col-sm-2 text-right"><spring:message code="message.listForm.jiXing"/><spring:message code="message.yanZheng.maoHao"/></label>
	                        <div class="col-sm-3 text-left">
	                           <c:out value="${detail.formName }" />
	                        </div>
	                        <label class="col-sm-3 text-right"><spring:message code="message.listForm.guiGe"/><spring:message code="message.yanZheng.maoHao"/></label>
	                        <div class="col-sm-3 text-left">
	                           <c:out value="${detail.specName }" />
	                        </div>
	                  </div>
	                   
	                    <div class="line"></div>
	                    <div class="form-group form-group-xs">
	                       <label class="col-sm-2 text-right">缺货数量<spring:message code="message.yanZheng.maoHao"/></label>
	                            <div class="col-sm-3 text-left">
	                                <c:out value="${detail.count }" />
	                            </div>
	                   </div>
	                   <div class="line"></div>
	                   <div class="form-group form-group-xs">
                            <label class="col-sm-2 text-right">缺货时段<spring:message code="message.yanZheng.maoHao"/></label>
                            <div class="col-sm-10 text-left">
                             <c:if test="${detail.is_longterm==1}">
                              		<label class='checkLong'><input type="radio" id="longTerm" name='isLongterm'  <c:out value="${detail.is_longterm==1?'checked':''}"></c:out>  /><span> 长期</span></label>  &nbsp;
                             </c:if>
                              <c:if test="${detail.is_longterm==0}">
                               		<div id='shortTable' >
                                 	<label class='checkLong'><input type="radio" id="shortTerm" name='isLongterm'  <c:out value="${detail.is_longterm==0?'checked':''}"></c:out>  /><span> 短期</span></label>
	                                   <table style="width:180px;"  >
			                             <tr>
			                                <td style="width:80px">
			                                	<fmt:formatDate value="${detail.start_datetime}" pattern="yyyy-MM-dd"/> 
			                                </td>
			                                <td>-&nbsp;</td>
			                                <td style="width:50%">
			                               		 <fmt:formatDate value="${detail.end_datetime}" pattern="yyyy-MM-dd"/>
			                                </td>
			                              </tr>
			                           </table>
                               </div>
                                </c:if>
                            </div>
                       </div>
                       <div class="line"></div>
	                   <div class="form-group form-group-xs">
	                        <label class="col-sm-2 text-right">缺货原因<spring:message code="message.yanZheng.maoHao"/></label>
	                        <div class="col-sm-9 text-left">
	                        	   <textarea rows="3" readonly class=" form-control" name="shortageReason" id="shortageReason" maxlength="2000" ><c:out value="${detail.shortage_reason }"/></textarea> 
	                        </div>
	                   </div>
	                   <!-- 基层 -->
	                   <c:if test="${hospClassify==2}">
	                      <div class="line"></div>
		                   <div class="form-group form-group-xs">
		                        <label class="col-sm-2 text-right">卫生局审核备注<spring:message code="message.yanZheng.maoHao"/></label>
		                        <div class="col-sm-9 text-left">
		                        	   <textarea rows="3" readonly class=" form-control" name="shortageReason" id="shortageReason" maxlength="2000" ><c:out value="${detail.bur_audit_remark }"/></textarea> 
		                        </div>
		                   </div>
		                    <div class="line"></div>
		                   <div class="form-group form-group-xs">
		                        <label class="col-sm-2 text-right">中心反馈结果<spring:message code="message.yanZheng.maoHao"/></label>
		                        <div class="col-sm-9 text-left">
		                         <c:out value="${detail.feedbackForm }"/>
		                        </div>
		                   </div>
		                   <div class="line"></div>
		                   <div class="form-group form-group-xs">
		                        <label class="col-sm-2 text-right">中心审核备注<spring:message code="message.yanZheng.maoHao"/></label>
		                        <div class="col-sm-9 text-left">
		                        	   <textarea rows="3" readonly class=" form-control" name="shortageReason" id="shortageReason" maxlength="2000" ><c:out value="${detail.cet_audit_remark }"/></textarea> 
		                        </div>
		                   </div>
		                   
	                   </c:if>
	                   
	                   	<!-- 县级 -->
	                    <c:if test="${hospClassify==1 }">
	                          <div class="line"></div>
		                   <div class="form-group form-group-xs">
		                        <label class="col-sm-2 text-right">中心反馈结果<spring:message code="message.yanZheng.maoHao"/></label>
		                        <div class="col-sm-9 text-left">
		                        	  <c:out value="${detail.feedbackForm }"/> 
		                        </div>
		                   </div>
		                   <div class="line"></div>
		                   <div class="form-group form-group-xs">
		                        <label class="col-sm-2 text-right">中心审核备注<spring:message code="message.yanZheng.maoHao"/></label>
		                        <div class="col-sm-9 text-left">
		                        	   <textarea rows="3" readonly class=" form-control" name="shortageReason" id="shortageReason" maxlength="2000" ><c:out value="${detail.cet_audit_remark }"/></textarea> 
		                        </div>
		                   </div>
	                    </c:if>
                </div>
               <div class="box-footer text-center">
                    <a href="javascript:history.go(-1)" class="btn btn-danger btn-sm"><spring:message code="message.button.getBackSpacing"/></a>
                </div>
            </form>
        </div>
    </section>
</body>
<%@ include file="/WEB-INF/component/commonJS.jsp"%>
<script type="text/javascript">
</script>
</html>